package com.superms.system.dao.mapper;

import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import com.superms.base.dao.CustomBaseMapper;
import com.superms.system.dao.entity.AccountEntity;

public interface AccountEntityMapper extends CustomBaseMapper<AccountEntity> {
	
	@Select("select * from sys_account where username = #{name} or email = #{email} or mobile = #{mobile} limit 1")
	@ResultMap("BaseResultMap")
	AccountEntity findByLoginName(String name);
}